ci: trigger patch release for Dependabot security updates - #408
Merged
Conversation
Contributor
Test CoverageVitest Coverage (summary)
Coverage Report (100%)
|
Contributor
|
Code Coverage change |
Contributor
Stryker report
|
Contributor
Stryker report
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.github/workflows/dependabot-security-fix.yml, which retitles Dependabot security PRs to afix(deps): ...Conventional Commit.Why
Releases are driven by release-please (
release-type: simple), which only bumps a version forfix:(patch),feat:(minor), or breaking changes. Dependabot opens PRs asbuild(deps): ..., which is release-neutral — so vulnerability fixes currently merge without producing a release.How
pull_request_target, gated todependabot[bot]).dependabot/fetch-metadata(pinned to SHA, v3.1.0) reads the update metadata.ghsa-idpresent) it rewrites the PR title tofix(deps): … [security GHSA-…]and adds asecuritylabel.fix:commit onmain, so release-please opens/updates a patch-level release PR (release candidate). Routine, non-security updates keepbuild(deps)and stay release-neutral.Notes / safety
pull_request_targetis required so the token can edit the PR title (Dependabotpull_requestruns are read-only). The workflow never checks out PR code and passes the PR title via anenvvar (no inline interpolation in shell), avoiding script injection.Validation